package org.adg.code.common;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

import org.adg.code.model.JDBC;

public class JDBCproperties {
	public JDBC getProperties()
	{
		Properties props=new Properties();
		InputStream in = getClass().getResourceAsStream("/jdbc.properties");
		JDBC j=new JDBC();
		try {
				props.load(in);
				j.seturl( props.getProperty("url"));
				j.setusr(props.getProperty("usr"));
				j.setpas(props.getProperty("pas"));
		}
		catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return j;
	}
}
